﻿@model IEnumerable<NOSDC.Pocos.Sponsor>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            Name
        </th>
          <th>
            Link
        </th>
        <th>
            Description
        </th>
        <th>
            Logo
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.SponsorId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.SponsorId })
        </td>
        <td>
            @item.Name
        </td>
        <td>
            @item.Link
        </td>
        <td>
            @item.Description
        </td>
        <td ><div ><img style="width:100px;height:100px;" src="@Url.Content("~/UploadedFiles/" + @item.Logo)" alt="" /></div>
           
        </td>
    </tr>
}

</table>

